using System;
using System.Collections.Generic;
using System.Text;

namespace limpalex.bbparser.Tokens
{
    internal static class Symbols
    {
        internal static readonly char OpeningBrace = '[';
        internal static readonly char ClosingBrace = ']';
        internal static readonly char Slash = '/';
        internal static readonly char Space = ' ';
        internal static readonly char LineBreak = '\n';
        internal static readonly char Quote = '\"';
        internal static readonly char SingleQuote = '\'';
        internal static readonly char Equality = '=';

        public static bool IsOpeningBrace(Char ch)
        {
            return ch == OpeningBrace;
        }

        public static bool IsClosingBrace(Char ch)
        {
            return ch == ClosingBrace;
        }

        public static bool IsSlash(Char ch)
        {
            return ch == Slash;
        }

        public static bool IsSpace(Char ch)
        {
            return ch == Space;
        }

        public static bool IsLineBreak(Char ch)
        {
            return ch == LineBreak;
        }

        public static bool IsQuote(Char ch)
        {
            return ch == Quote || ch == SingleQuote;
        }

        public static bool IsEquality(Char ch)
        {
            return ch == Equality;
        }
    }
}
